package Examin.WangYi;

import java.util.ArrayList;
import java.util.Scanner;

public class First {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        //记录每一行
        ArrayList<String> res = new ArrayList<>();
        //前n行，两边点递减
        for(int i=0;i<3*n;i++){
            StringBuilder sb = new StringBuilder();
            if(i<n){
                for (int j = 0; j < 4*n; j++) {
                    if(j<n-i || j>=4*n - (n-i)){
                        sb.append('.');
                    }else {
                        sb.append('*');
                    }
                }

            }else if(i>=n && i<3*n){
                //中间2n行，两边各是n个*，
                for (int j = 0; j < n; j++) {
                    sb.append('*');
                }
                for (int j = 0; j < 2*n; j++) {
                    sb.append('.');
                }
                for (int j = 0; j < n; j++) {
                    sb.append('*');
                }
            }
            res.add(sb.toString());
        }
        for(int i = n-1;i>=0;i--){
            res.add(res.get(i));
        }
        for (String str : res){
            System.out.println(str);
        }

    }
}
